package com.example.cheapshark.mobile;

import android.app.Application;

public class CSMobileApplication extends Application {
	private static final int NUMBER_OF_PAGES = 9;
	private static final int TOP_ITEMS_COUNT = 7;
	private GameDeal[][] allDeals;
	private static boolean[] storeReady={false,false,false,false,false,false,false,false,false};
	public static int getNumberOfPages() {
		return NUMBER_OF_PAGES;
	}
	public static int getTopItemsCount() {
		return TOP_ITEMS_COUNT;
	}
	public void onCreate()
	{
		allDeals = new GameDeal[NUMBER_OF_PAGES][TOP_ITEMS_COUNT];
	}
	public GameDeal[] getDeals(int index)
	{
		return allDeals[index];
	}
	public void setDeals(int index, GameDeal[] deals){
		allDeals[index] = deals; 
	}
	
	/**
	 * @param Storyindex
	 * @return ready or not
	 * Remember that this index starts at 0
	 */
	public static boolean getStoreReady(int index){
		
		return storeReady[index];
	}
	
	
	public void setStoreReady(int index){
		storeReady[index]=true;
	}
}